# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py3-dill
_pyname=dill
pkgver=0.3.4
pkgrel=1
pkgdesc="Python serializer supporting a broader range of types than pickle"
url="https://pypi.org/project/dill/"
arch="noarch !s390x" # broken on big-endian
license="BSD-3-Clause"
makedepends="python3 py3-setuptools"
_pypiprefix="${_pyname%${_pyname#?}}"
source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.zip"
builddir=$srcdir/$_pyname-$pkgver

build() {
	python3 setup.py build
}

check() {
	export PYTHONPATH="$(pwd):$PYTHONPATH"
	for t in tests/test*.py
	do
		echo "$t"
		python3 "$t"
	done
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
	rm -rf "$pkgdir"/usr/lib/python3*/site-packages/dill/tests
}

sha512sums="
25f1683d725e5ed2d6ce61fcd82d679c0504ef506ad7cb501be6dfce3b80f1fdacbb39991eea8899259f9803248c75cb1bc3bd4b28a43be5902dd724946c68f6  dill-0.3.4.zip
"
